#pragma once

#include "util.h"
#include "DataClient.h"
#include "AnsiMemFile.h"

class CDataTracker
{
public:
	CDataTracker(  );
	~CDataTracker(void);
	int MakeResponse( CDataClient* lpDataClient, CAnsiMemFile* lpMsgBody,  RecvDataPacket &recvPacket, SendDataPacket &sendPacket );
    int recviveSystemBuffer(  CDataClient* lpDataClient, CAnsiMemFile* lpMsgBody, RecvDataPacket &recvPacket, SendDataPacket &sendPacket );
	int recviveCheckUpdate(  CDataClient* lpDataClient, CAnsiMemFile* lpMsgBody, RecvDataPacket &recvPacket, SendDataPacket &sendPacket );

protected:

	TCHAR szMsgBuffer[512];

	

	PER_IO_OPERATION_DATA ioDataCmd;

	ULONGLONG m_qwGotoMerger;

public:
	int Update(void);
	int GotoMergerData( bool bForce = true );
};
